﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace GiveGraphModel
{
    public class Location
    {
        public int LocationId { get; set; }
        public string Address { get; set; }
        public string ZipCode { get; set; }
        public string Country { get; set; }
    }

    public sealed class LocationConfiguration : EntityTypeConfiguration<Location>
    {
        public LocationConfiguration()
        {
            Property(l => l.Address)
                .IsRequired();

            Property(l => l.Country)
                .IsRequired();

            Property(l => l.ZipCode)
                .IsRequired();
        }
    }
}
